package com.ruoyi.medmanage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药物信息
 对象 medical_info
 *
 * @author y
 * @date 2022-03-29
 */
public class MedicalInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药物编号 */
    private Integer medId;

    /** 药物名称 */
    @Excel(name = "药物名称")
    private String medName;

    /** 药物编码 */
    @Excel(name = "药物编码")
    private String medCode;

    /** 图片 */
    @Excel(name = "图片")
    private String medImg;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String manufacturer;

    /** 药物类型 */
    @Excel(name = "药物类型")
    private String medType;

    /** 处方类型 */
    @Excel(name = "处方类型")
    private String preType;

    /** 处方价格(元) */
    @Excel(name = "处方价格(元)")
    private BigDecimal medPrice;

    /** 库存量 */
    @Excel(name = "库存量")
    private Long stock;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date producttime;

    /** 保质期(月) */
    @Excel(name = "保质期(月)")
    private String warrenty;

    /** 药物状态（0正常 1过期） */
    @Excel(name = "药物状态", readConverterExp = "0=正常,1=过期")
    private String medStatus;

    public void setMedId(Integer medId)
    {
        this.medId = medId;
    }

    public Integer getMedId()
    {
        return medId;
    }
    public void setMedName(String medName)
    {
        this.medName = medName;
    }

    public String getMedName()
    {
        return medName;
    }
    public void setMedCode(String medCode)
    {
        this.medCode = medCode;
    }

    public String getMedCode()
    {
        return medCode;
    }
    public void setMedImg(String medImg)
    {
        this.medImg = medImg;
    }

    public String getMedImg()
    {
        return medImg;
    }
    public void setManufacturer(String manufacturer)
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer()
    {
        return manufacturer;
    }
    public void setMedType(String medType)
    {
        this.medType = medType;
    }

    public String getMedType()
    {
        return medType;
    }
    public void setPreType(String preType)
    {
        this.preType = preType;
    }

    public String getPreType()
    {
        return preType;
    }
    public void setMedPrice(BigDecimal medPrice)
    {
        this.medPrice = medPrice;
    }

    public BigDecimal getMedPrice()
    {
        return medPrice;
    }
    public void setStock(Long stock)
    {
        this.stock = stock;
    }

    public Long getStock()
    {
        return stock;
    }
    public void setProducttime(Date producttime)
    {
        this.producttime = producttime;
    }

    public Date getProducttime()
    {
        return producttime;
    }
    public void setWarrenty(String warrenty)
    {
        this.warrenty = warrenty;
    }

    public String getWarrenty()
    {
        return warrenty;
    }
    public void setMedStatus(String medStatus)
    {
        this.medStatus = medStatus;
    }

    public String getMedStatus()
    {
        return medStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("medId", getMedId())
                .append("medName", getMedName())
                .append("medCode", getMedCode())
                .append("medImg", getMedImg())
                .append("manufacturer", getManufacturer())
                .append("medType", getMedType())
                .append("preType", getPreType())
                .append("medPrice", getMedPrice())
                .append("stock", getStock())
                .append("producttime", getProducttime())
                .append("warrenty", getWarrenty())
                .append("medStatus", getMedStatus())
                .toString();
    }
}
